package com.seecen.utils;



public enum ResultCode {
    SUCCESS(200, "success"),
    USERNAME_ERROR(501, "usernameError"),
    PASSWORD_ERROR(503, "passwordError"),
    NOTLOGIN(504, "notLogin"),
    USERNAME_USED(505, "usernameUsed"),
    USE_HELP_ERROR(506, "获取帮助文档失败"),
    //ID不合法
    USE_HELP_ID_ERROR(508, "id不合法"),
    //文档不存在或已删除
    HELP_NOT_EXIST(507, "文档不存在或已删除"),
    // 获取帮助文档详情失败
    USE_HELP_DETAIL_ERROR(509, "获取帮助文档详情失败"),
    // 反馈发送失败
    FEEDBACK_SEND_ERROR(510, "反馈发送失败，请稍后重试");

    private Integer code;
    private String message;

    private ResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
